package com.kandinfo.isbnmanage.util;

public class PublishUtil {
	
	/**
	 * 获取生产预发环境的科目
	 * 
	 * @return
	 */
	public static Long getPublishSubject(Long subject,Long term){
		if(1 == term || 3 == term){//上学期
            return subject;
        }else{//下学期
        	String subjectStr = null;
            if(subject>=10){
            	subjectStr = "1"+subject;
            }else{
            	subjectStr = "10"+subject;
            }
            return Long.valueOf(subjectStr);
        }
	}

}
